function mycallback(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
for (var j = 0; j < json.feed.entry[i].link.length; j++) {
if (json.feed.entry[i].link[j].rel == 'alternate') {
var postUrl = json.feed.entry[i].link[j].href;
break;
}
}

var postTitle = json.feed.entry[i].title.$t;
var postAuthor = json.feed.entry[i].author[0].name.$t;
var postSummary = json.feed.entry[i].summary.$t;
var entryShort = postSummary.substring(0, 170);
var entryEnd = entryShort.lastIndexOf(" ");
var postContent = entryShort.substring(0, entryEnd) + '...';
var imageThumb = json.feed.entry[i].media$thumbnail.url;

var item00 = "<div class='item' style='margin:0px;overflow:hidden;'>";
var item01 = "<div class='image'><img src='" + imageThumb + "' class='float' /></div>";
var item02 = "<div class='text'><b><a href='" + postUrl + "'>" + postTitle + "</a></b><br />";
var item03 = postContent + "</div>";
var item04 = "</div>";
var item = item00 + item01 + item02 + item03 + item04;

document.write(item);

}
}